Closed
Conversation
jonyMarino
reviewed
Aug 14, 2025
|
|
||
| try: | ||
| client.connect() | ||
| world = World(client) # sin argumentos |
b5ca72d to
4789336
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #
About
This PR adds support for creating and reusing world configurations in ProjectAirSim, along with practical examples for users.
Two new example scripts have been added:
world_creator.py: creates a world from a scene file (scene_basic_drone.jsonc) and saves its configuration in a shared volume.world_consumer.py: loads a previously saved world configuration and runs a demonstration flight sequence with a drone, showing camera views (chase cam, RGB, and depth).In
utils.py:load_scene_config_as_dicthas been extended to support multiple configuration files per robot or environment actor.merge_dictsandmerge_listshave been introduced to recursively and cleanly merge configurations.In
world.py:airsim_shared/world_config.json.Worldconstructor can automatically load the last saved configuration if no new scene is specified.parent_topichas been adjusted for greater flexibility (/Siminstead of/Sim/SceneBasicDrone).How Has This Been Tested?
Ran
world_creator.pyto generate a world and verified thatworld_config.jsonis saved correctly both inside and outside Docker.Ran
world_consumer.pyto:Manually tested loading multiple robot configurations to validate correct merging of data.